import BlankLayout from '@/layouts/BlankLayout';
import UserLayout from '@/layouts/UserLayout';
import BasicLayout from '@/layouts/BasicLayout';

import Login from '@/pages/user/login';
import Register from '@/pages/user/register';

import Home from '@/pages/home';

export default [
  {
    path: '/',
    component: BlankLayout,
    routes: [
      {
        path: '/user',
        component: UserLayout,
        routes: [
          {
            path: '/user/login',
            component: Login,
          },
          {
            path: '/user/register',
            component: Register,
          },
        ],
      },
      {
        path: '/home',
        component: BasicLayout,
        routes: [
          {
            path: '/home/index',
            name: '首页',
            component: Home,
          },
        ],
      },
    ],
  },
];
